import request from "../utils/request";

// 广告接口----------------------------------

// 获取广告列表
export const fetchAdvertisementData = (params) => {
  return request({
    url: "/web/advertisement/getList",
    method: "get",
    params: params,
  });
};

// 创建/修改广告
export const fetchAdvertisementCreate = (data) => {
  return request({
    url: "/web/advertisement/create",
    method: "post",
    data: data,
  });
};

// 删除广告
export const fetchDeleteAdvertisement = (data) => {
  return request({
    url: "/web/advertisement/deleteById",
    method: "post",
    data: data,
  });
};